/*
* 网站主页面路由
* 如果eslint解析import组件错误，看http://www.voidcn.com/article/p-shyfzxkp-bvq.html
* https://www.cnblogs.com/danker/p/12454611.html,好像只要安装第一步的包就行，第二步不用干
* 注意：子路由的path他妈不能写绝对路径
*/

import main from '@/views/main/main.vue';
import index from '@/views/main/index/index.vue';

export const routeMapMain = [
	{

		path:'/main',
		// name: 'main', //如果有子路由，一级路由设置name会警告
		component:main,
		meta: { title: 'xGAME(星光城)' },
		children:[
			{
				//默认子路由直接显示
				path:'/',

				redirect:'index'
			},
			{
				//默认子路由直接显示
				path:'index',
				name:'mainIndex',
				component: index,
			},
			{
				path:'/manage',
				name: '治理',
				component: ()=> import ('../views/manage/manage.vue')
			},
			{
				path:'/swap',
				name: '兑换',
				component: ()=> import ('../views/swap/exchange.vue')
			},
			{
				path: 'farm',
				name: 'farm',
				component: () => import('../views/main/farm/farm.vue'),
				meta: { title: '矿池' }
			},
			{
				path: 'faq',
				name: 'faq',
				component: () => import('../views/main/faq/faq.vue'),
				meta: { title: '常见问题' }
			},
			{
				path: 'whitepaper',
				name: 'whitepaper',
				component: () => import('../views/main/whitepaper/whitepaper.vue'),
				meta: { title: '白皮书' }
			},
			{
				path: 'bank',
				name: 'bank',
				component: () => import('../views/main/bank/bank.vue'),
				meta: { title: '金库' }
			},
			{
				path: 'rule',
				name: 'rule',
				component: () => import('../views/main/rule/rule.vue'),
				meta: { title: '挖矿规则' }
			},
			{
				path: 'lp',
				name: 'lp',
				component: () => import('../views/main/lp/lp.vue'),
				meta: { title: '操作说明' }
			},

		]
	},

]
